function AddToShoppingCart(product_id)

{

         var url=null;

 

         if(product_id==null || product_id<1)

                   url="http://shopping.dangdang.com/shoppingcart/shopping_cart.aspx";

         else

                  url="http://shopping.dangdang.com/shoppingcart/shopping_cart_add.aspx?product_ids="+product_id+"&reference_url="+escape(window.location.href);

 

         var popup=window.open(url,"shoppingcart");

         popup.focus()

}


function AddToFavorlist(product_id)

{  

         var url="http://customer.dangdang.com/wishlist/cust_wish_add.aspx?productid="+product_id;

         var popup=window.open(url,"favorlist");

         popup.focus()

}















